import matplotlib.pyplot as plt

# 示例数据
x_axis_data = [0, 1, 2, 3, 4]
y_axis_data = [10, 15, 20, 25, 30]
turnover_mean = 20
turnover_std = 5

# 绘制数据点
plt.plot(x_axis_data, y_axis_data, 'b.', alpha=0.5, linewidth=1)

# 添加水平参考线，并为每条参考线添加标签
plt.axhline(y=turnover_mean, ls=":", c="black", label='Mean')
plt.axhline(y=turnover_mean - turnover_std, ls=":", alpha=1, c="red", label='Mean - Std')
plt.axhline(y=turnover_mean + turnover_std, ls=":", alpha=1, c="green", label='Mean + Std')

# 添加图例和标签
plt.legend()  # 显示图例

plt.xlabel('X Axis')  # x 轴标签
plt.ylabel('Y Axis')  # y 轴标签

# 显示图表
plt.show()
